<template>
	<view class="content">
		<view class="list-box">
			<view class="item-box">
				<view class="item">
					<view class="colmun" v-for="(item,index) in list" :key="index">
						<view class="">
							<text>{{item.address}}</text>
							<text class="phone">{{item.landarea}}亩</text>
						</view>
						<!-- <view class="item-btn">
							承包
						</view> -->
						
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[],
				page:1
			}
		},
		onLoad() {
			this.getinfo()
		},
		onReachBottom() {
			this.page++
			this.loadData()
		},
		methods: {
			//获取村列表
			getinfo(){
				let token=uni.getStorageSync('token')
					this.$http.post('/api/Index/get_my_rent_list',{
						token:token,
						limit: '15',
						page:this.page,
						}).then(res=>{
							console.log(res.data.data.data)
						this.list=this.list.concat(res.data.data.data)
					})
			},
			goInfo(address){
				uni.navigateTo({
					url:'/pages/me/inearth/inearth?address='+address
				})
			}
		}
	}
</script>

<style lang="scss">
.content{
	min-height: 100vh;
	background-color: #F8F8F8;
	padding: 20rpx 30rpx 80rpx;
	box-sizing: border-box;
}
.item{
	padding: 0 30rpx;
	box-sizing: border-box;
	width: 690rpx;
	background:rgba(255,255,255,1);
	border-radius:20px;
	margin-bottom: 30rpx;
}
.colmun{
	padding: 30rpx;
	box-sizing: border-box;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	border-bottom: 1px solid rgba(0,0,0,.05);
	&:last-child{
		border: none;
	}
	text{
		font-size:17px;
		font-family:PingFang SC;
		//font-weight:500;
		color:rgba(51,51,51,1);
	}
	.phone{
		font-size:17px;
		font-family:PingFang SC;
		font-weight:500;
		color:rgba(51,51,51,1);
		flex: 1;
		margin: 0 30rpx;
	}
	image{
		width:12rpx;
		height:23rpx;
	}
	.item-btn{
		width: 50px;
		margin-left: 30rpx;
		text-align: center;
		color: #FFFFFF;
		border-radius: 10rpx;
		background-color: #3FC377;
	}
}
</style>
